package com.atguigu.strategy;

/**
 * @author shengxiao
 * @date 2021/9/30 23:14
 */

// Context【上下文】角色
// 负责使用
public abstract class Duck {

    public Duck(){

    }

    public abstract void display() ;    // 显示鸭子信息

    public void quack(){
        System.out.println("鸭子嘎嘎叫~~");
    }

    public void swim(){
        System.out.println("鸭子会游泳~~");
    }

    public void fly(){
        System.out.println("鸭子会飞翔~~~");
    }
}
